home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 69 78 | 2e 6e 65 74 63 6f 6d 2e |Path: ix|.netcom.|
|00000010| 63 6f 6d 21 6e 65 74 6e | 65 77 73 0a 46 72 6f 6d |com!netn|ews.From|
|00000020| 3a 20 4e 69 63 68 6f 6c | 61 73 20 50 61 6c 64 69 |: Nichol|as Paldi|
|00000030| 6e 6f 20 3c 6e 70 31 30 | 31 30 40 63 6e 73 75 6e |no <np10|10@cnsun|
|00000040| 69 78 2e 61 6c 62 61 6e | 79 2e 65 64 75 3e 0a 4e |ix.alban|y.edu>.N|
|00000050| 65 77 73 67 72 6f 75 70 | 73 3a 20 63 6f 6d 70 2e |ewsgroup|s: comp.|
|00000060| 6c 61 6e 67 2e 63 0a 53 | 75 62 6a 65 63 74 3a 20 |lang.c.S|ubject: |
|00000070| 52 65 3a 20 54 72 6f 75 | 62 6c 65 20 77 69 74 68 |Re: Trou|ble with|
|00000080| 20 66 69 6c 65 20 72 65 | 74 75 72 6e 20 63 6f 64 | file re|turn cod|
|00000090| 65 2e 0a 44 61 74 65 3a | 20 54 68 75 2c 20 31 31 |e..Date:| Thu, 11|
|000000a0| 20 4a 61 6e 20 31 39 39 | 36 20 30 30 3a 31 37 3a | Jan 199|6 00:17:|
|000000b0| 33 35 20 2d 30 38 30 30 | 0a 4f 72 67 61 6e 69 7a |35 -0800|.Organiz|
|000000c0| 61 74 69 6f 6e 3a 20 4e | 65 74 63 6f 6d 0a 4d 65 |ation: N|etcom.Me|
|000000d0| 73 73 61 67 65 2d 49 44 | 3a 20 3c 33 30 46 34 43 |ssage-ID|: <30F4C|
|000000e0| 37 39 46 2e 45 33 46 40 | 63 6e 73 75 6e 69 78 2e |79F.E3F@|cnsunix.|
|000000f0| 61 6c 62 61 6e 79 2e 65 | 64 75 3e 0a 52 65 66 65 |albany.e|du>.Refe|
|00000100| 72 65 6e 63 65 73 3a 20 | 3c 74 63 70 6e 6e 74 70 |rences: |<tcpnntp|
|00000110| 64 2e 31 36 2e 31 2e 31 | 30 2e 32 30 2e 32 32 2e |d.16.1.1|0.20.22.|
|00000120| 34 32 2e 32 37 38 31 35 | 39 37 31 32 31 2e 33 33 |42.27815|97121.33|
|00000130| 33 36 31 30 40 74 68 65 | 2d 66 69 78 2e 73 6f 73 |3610@the|-fix.sos|
|00000140| 2e 6f 6e 2e 63 61 3e 20 | 3c 34 64 32 31 70 6a 24 |.on.ca> |<4d21pj$|
|00000150| 6d 69 35 40 69 6e 66 6f | 2e 75 61 68 2e 65 64 75 |mi5@info|.uah.edu|
|00000160| 3e 0a 4e 4e 54 50 2d 50 | 6f 73 74 69 6e 67 2d 48 |>.NNTP-P|osting-H|
|00000170| 6f 73 74 3a 20 69 78 2d | 6e 79 63 32 30 2d 30 38 |ost: ix-|nyc20-08|
|00000180| 2e 69 78 2e 6e 65 74 63 | 6f 6d 2e 63 6f 6d 0a 4d |.ix.netc|om.com.M|
|00000190| 69 6d 65 2d 56 65 72 73 | 69 6f 6e 3a 20 31 2e 30 |ime-Vers|ion: 1.0|
|000001a0| 0a 43 6f 6e 74 65 6e 74 | 2d 54 79 70 65 3a 20 74 |.Content|-Type: t|
|000001b0| 65 78 74 2f 70 6c 61 69 | 6e 3b 20 63 68 61 72 73 |ext/plai|n; chars|
|000001c0| 65 74 3d 75 73 2d 61 73 | 63 69 69 0a 43 6f 6e 74 |et=us-as|cii.Cont|
|000001d0| 65 6e 74 2d 54 72 61 6e | 73 66 65 72 2d 45 6e 63 |ent-Tran|sfer-Enc|
|000001e0| 6f 64 69 6e 67 3a 20 37 | 62 69 74 0a 58 2d 4e 45 |oding: 7|bit.X-NE|
|000001f0| 54 43 4f 4d 2d 44 61 74 | 65 3a 20 57 65 64 20 4a |TCOM-Dat|e: Wed J|
|00000200| 61 6e 20 31 30 20 20 39 | 3a 32 32 3a 32 37 20 50 |an 10 9|:22:27 P|
|00000210| 4d 20 50 53 54 20 31 39 | 39 36 0a 58 2d 4d 61 69 |M PST 19|96.X-Mai|
|00000220| 6c 65 72 3a 20 4d 6f 7a | 69 6c 6c 61 20 32 2e 30 |ler: Moz|illa 2.0|
|00000230| 62 34 61 20 28 57 69 6e | 39 35 3b 20 49 3b 20 31 |b4a (Win|95; I; 1|
|00000240| 36 62 69 74 29 0a 54 6f | 3a 20 47 72 65 67 20 42 |6bit).To|: Greg B|
|00000250| 61 63 6f 6e 20 3c 67 62 | 61 63 6f 6e 40 6f 72 65 |acon <gb|acon@ore|
|00000260| 6f 3e 0a 0a 47 72 65 67 | 20 42 61 63 6f 6e 20 77 |o>..Greg| Bacon w|
|00000270| 72 6f 74 65 3a 0a 3e 20 | 0a 3e 20 78 65 6e 6f 6e |rote:.> |.> xenon|
|00000280| 40 74 68 65 2d 66 69 78 | 2e 73 6f 73 2e 6f 6e 2e |@the-fix|.sos.on.|
|00000290| 63 61 20 77 72 6f 74 65 | 3a 0a 3e 20 3a 20 20 20 |ca wrote|:.> : |
|000002a0| 20 20 20 20 20 49 6d 20 | 68 61 76 69 6e 67 20 73 | Im |having s|
|000002b0| 6f 6d 65 20 74 72 6f 75 | 62 6c 65 20 67 65 74 74 |ome trou|ble gett|
|000002c0| 69 6e 67 20 66 72 65 61 | 64 20 74 6f 20 72 65 74 |ing frea|d to ret|
|000002d0| 75 72 6e 20 4e 55 4c 4c | 20 77 68 65 6e 20 69 74 |urn NULL| when it|
|000002e0| 20 63 61 6e 27 74 0a 3e | 20 3a 20 66 69 6e 64 20 | can't.>| : find |
|000002f0| 61 20 73 70 65 63 69 66 | 69 63 20 66 69 6c 65 2e |a specif|ic file.|
|00000300| 2e 2e 0a 3e 20 0a 3e 20 | 3a 20 20 20 20 20 20 20 |...> .> |: |
|00000310| 20 20 20 65 6c 73 65 20 | 69 66 28 28 70 74 72 3d | else |if((ptr=|
|00000320| 66 72 65 61 64 28 66 69 | 6c 65 6e 61 6d 65 31 2c |fread(fi|lename1,|
|00000330| 22 72 62 22 29 29 21 3d | 4e 55 4c 4c 29 0a 3e 20 |"rb"))!=|NULL).> |
|00000340| 3a 20 20 20 7b 0a 3e 20 | 3a 20 20 20 20 20 20 20 |: {.> |: |
|00000350| 20 2f 2f 64 6f 20 74 68 | 69 73 20 7d 0a 3e 20 3a | //do th|is }.> :|
|00000360| 20 20 20 20 20 20 20 20 | 20 20 65 6c 73 65 20 20 | | else |
|00000370| 20 20 7b 0a 3e 20 3a 20 | 20 20 20 20 20 20 20 2f | {.> : | /|
|00000380| 2f 20 64 6f 20 74 68 61 | 74 0a 3e 20 3a 20 20 20 |/ do tha|t.> : |
|00000390| 20 20 20 20 20 2f 2f 20 | 74 68 69 73 20 6e 65 76 | // |this nev|
|000003a0| 65 72 20 65 78 65 63 75 | 74 65 73 2c 20 65 76 65 |er execu|tes, eve|
|000003b0| 6e 20 69 66 20 4e 55 4c | 4c 20 69 73 20 72 65 74 |n if NUL|L is ret|
|000003c0| 75 72 6e 65 64 2e 0a 3e | 20 3a 20 4e 6f 20 6d 61 |urned..>| : No ma|
|000003d0| 74 74 65 72 20 74 68 65 | 20 66 69 6c 65 2c 20 4e |tter the| file, N|
|000003e0| 75 6c 6c 20 69 73 20 6e | 65 76 65 72 20 72 65 74 |ull is n|ever ret|
|000003f0| 75 72 6e 65 64 2e 20 20 | 41 6c 74 68 6f 75 67 68 |urned. |Although|
|00000400| 2c 20 77 68 65 6e 20 74 | 68 65 20 76 61 72 69 61 |, when t|he varia|
|00000410| 62 6c 65 0a 3e 20 3a 20 | 70 74 72 20 69 73 20 6f |ble.> : |ptr is o|
|00000420| 75 74 70 75 74 65 64 2c | 20 74 68 65 20 76 61 6c |utputed,| the val|
|00000430| 75 65 20 73 68 6f 77 6e | 20 69 73 20 22 30 22 2e |ue shown| is "0".|
|00000440| 0a 3e 20 3a 20 74 68 61 | 6e 6b 78 0a 3e 20 3a 20 |.> : tha|nkx.> : |
|00000450| 78 65 6e 6f 6e 40 74 68 | 65 2d 66 69 78 2e 73 6f |xenon@th|e-fix.so|
|00000460| 73 2e 6f 6e 2e 63 61 0a | 3e 20 0a 3e 20 49 20 73 |s.on.ca.|> .> I s|
|00000470| 65 65 20 61 20 66 65 77 | 20 70 72 6f 62 6c 65 6d |ee a few| problem|
|00000480| 73 20 77 69 74 68 20 79 | 6f 75 72 20 63 6f 64 65 |s with y|our code|
|00000490| 3a 0a 3e 20 0a 3e 20 46 | 69 72 73 74 20 6f 66 66 |:.> .> F|irst off|
|000004a0| 2c 20 2f 2f 20 69 73 20 | 6e 6f 74 20 61 20 73 74 |, // is |not a st|
|000004b0| 61 6e 64 61 72 64 20 43 | 20 63 6f 6d 6d 65 6e 74 |andard C| comment|
|000004c0| 20 64 65 6c 69 6d 69 74 | 65 72 2e 20 20 54 68 65 | delimit|er. The|
|000004d0| 20 43 20 53 74 61 6e 64 | 61 72 64 20 73 74 61 74 | C Stand|ard stat|
|000004e0| 65 73 0a 3e 20 74 68 61 | 74 20 2f 2a 20 61 6e 64 |es.> tha|t /* and|
|000004f0| 20 2a 2f 20 73 75 72 72 | 6f 75 6e 64 20 63 6f 6d | */ surr|ound com|
|00000500| 6d 65 6e 74 73 2e 0a 3e | 20 0a 3e 20 4e 65 78 74 |ments..>| .> Next|
|00000510| 2c 20 69 74 20 6c 6f 6f | 6b 73 20 6c 69 6b 65 20 |, it loo|ks like |
|00000520| 79 6f 75 27 72 65 20 65 | 78 70 65 63 74 69 6e 67 |you're e|xpecting|
|00000530| 20 61 20 70 6f 69 6e 74 | 65 72 20 66 72 6f 6d 20 | a point|er from |
|00000540| 66 72 65 61 64 28 29 2e | 20 20 50 61 67 65 20 32 |fread().| Page 2|
|00000550| 34 37 20 6f 66 0a 3e 20 | 4b 26 52 20 49 49 20 67 |47 of.> |K&R II g|
|00000560| 69 76 65 73 20 74 68 69 | 73 20 70 72 6f 74 6f 74 |ives thi|s protot|
|00000570| 79 70 65 20 66 6f 72 20 | 66 72 65 61 64 28 29 3a |ype for |fread():|
|00000580| 0a 3e 20 0a 3e 20 73 69 | 7a 65 5f 74 20 66 72 65 |.> .> si|ze_t fre|
|00000590| 61 64 28 76 6f 69 64 20 | 2a 70 74 72 2c 20 73 69 |ad(void |*ptr, si|
|000005a0| 7a 65 5f 74 20 73 69 7a | 65 2c 20 73 69 7a 65 5f |ze_t siz|e, size_|
|000005b0| 74 20 6e 6f 62 6a 2c 20 | 46 49 4c 45 20 2a 73 74 |t nobj, |FILE *st|
|000005c0| 72 65 61 6d 29 3b 0a 3e | 20 0a 3e 20 4f 68 20 79 |ream);.>| .> Oh y|
|000005d0| 65 61 68 2e 2e 20 61 6e | 64 20 74 68 65 72 65 27 |eah.. an|d there'|
|000005e0| 73 20 61 6c 73 6f 20 74 | 68 61 74 20 74 65 63 68 |s also t|hat tech|
|000005f0| 6e 69 63 61 6c 69 74 79 | 20 6f 66 20 63 6f 72 72 |nicality| of corr|
|00000600| 65 63 74 20 6f 72 64 65 | 72 69 6e 67 20 6f 66 0a |ect orde|ring of.|
|00000610| 3e 20 70 61 72 61 6d 65 | 74 65 72 73 2e 20 20 44 |> parame|ters. D|
|00000620| 65 70 65 6e 64 69 6e 67 | 20 6f 6e 20 74 68 65 20 |epending| on the |
|00000630| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 2c 20 |implemen|tation, |
|00000640| 66 72 65 61 64 28 29 20 | 6d 61 79 20 72 65 74 75 |fread() |may retu|
|00000650| 72 6e 20 30 20 6f 6e 0a | 3e 20 65 72 72 6f 72 20 |rn 0 on.|> error |
|00000660| 6f 72 20 79 6f 75 20 6d | 61 79 20 68 61 76 65 20 |or you m|ay have |
|00000670| 74 6f 20 75 73 65 20 66 | 65 6f 66 28 29 20 61 6e |to use f|eof() an|
|00000680| 64 20 66 65 72 72 6f 72 | 28 29 20 61 6e 64 20 64 |d ferror|() and d|
|00000690| 65 74 65 72 6d 69 6e 65 | 20 73 74 61 74 75 73 2e |etermine| status.|
|000006a0| 0a 3e 20 0a 3e 20 43 68 | 65 65 72 73 2c 0a 3e 20 |.> .> Ch|eers,.> |
|000006b0| 47 72 65 67 0a 3e 20 2d | 2d 0a 3e 20 47 72 65 67 |Greg.> -|-.> Greg|
|000006c0| 20 42 61 63 6f 6e 20 3c | 67 62 61 63 6f 6e 40 63 | Bacon <|gbacon@c|
|000006d0| 73 2e 75 61 68 2e 65 64 | 75 3e 0a 3e 20 55 6e 69 |s.uah.ed|u>.> Uni|
|000006e0| 76 65 72 73 69 74 79 20 | 6f 66 20 41 6c 61 62 61 |versity |of Alaba|
|000006f0| 6d 61 20 69 6e 20 48 75 | 6e 74 73 76 69 6c 6c 65 |ma in Hu|ntsville|
|00000700| 0a 3e 20 43 53 20 44 65 | 70 61 72 74 6d 65 6e 74 |.> CS De|partment|
|00000710| 20 53 79 73 74 65 6d 73 | 20 53 75 70 70 6f 72 74 | Systems| Support|
|00000720| 20 54 65 61 6d 0a 0a 54 | 72 79 20 75 73 69 6e 67 | Team..T|ry using|
|00000730| 20 66 6f 70 65 6e 28 66 | 69 6c 65 6e 61 6d 65 31 | fopen(f|ilename1|
|00000740| 2c 20 22 72 62 22 29 20 | 69 6e 73 74 65 61 64 20 |, "rb") |instead |
|00000750| 6f 66 20 66 72 65 61 64 | 28 29 2e 20 20 59 6f 75 |of fread|(). You|
|00000760| 20 70 72 6f 62 61 62 6c | 79 20 64 69 64 20 0a 6e | probabl|y did .n|
|00000770| 6f 74 20 6f 70 65 6e 20 | 74 68 65 20 66 69 6c 65 |ot open |the file|
|00000780| 20 79 65 74 2e 20 20 55 | 73 69 6e 67 20 74 68 65 | yet. U|sing the|
|00000790| 20 66 75 6e 63 74 69 6f | 6e 20 66 6f 70 65 6e 28 | functio|n fopen(|
|000007a0| 29 2c 20 69 66 20 74 68 | 65 20 66 69 6c 65 20 64 |), if th|e file d|
|000007b0| 6f 65 73 6e 27 74 20 0a | 65 78 69 73 74 20 74 68 |oesn't .|exist th|
|000007c0| 65 6e 20 66 6f 70 65 6e | 28 29 20 77 69 6c 6c 20 |en fopen|() will |
|000007d0| 72 65 74 75 72 6e 20 4e | 55 4c 4c 2e 0a 0a 09 09 |return N|ULL.....|
|000007e0| 09 09 09 2d 20 4e 69 63 | 68 6f 6c 61 73 20 50 61 |...- Nic|holas Pa|
|000007f0| 6c 64 69 6e 6f 0a 09 09 | 09 09 09 2d 20 6e 70 31 |ldino...|...- np1|
|00000800| 30 31 30 40 63 6e 73 75 | 6e 69 78 2e 61 6c 62 61 |010@cnsu|nix.alba|
|00000810| 6e 79 2e 65 64 75 0a | |ny.edu. | |
+--------+-------------------------+-------------------------+--------+--------+